From: Alessandro Bono Date: Sun, 15 Jan 2023 13:31:08 +0000 (+0100) Subject: dash: Move item declaration on top X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~281^2~2^2~341 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=552d2172bcf5d9b5d5db575cce30617714831506;p=gnome-shell.git dash: Move item declaration on top Otherwise it is not clear what is the item variable that we are passing to _itemMenuStateChanged(). Part-of: --- diff --git a/js/ui/dash.js b/js/ui/dash.js index 0841b6c04..98ec159cb 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -512,13 +512,13 @@ export const Dash = GObject.registerClass({ } _createAppItem(app) { + let item = new DashItemContainer(); let appIcon = new DashIcon(app); appIcon.connect('menu-state-changed', (o, opened) => { this._itemMenuStateChanged(item, opened); }); - let item = new DashItemContainer(); item.setChild(appIcon); // Override default AppIcon label_actor, now the